// src/api/exam.js
import request from '../utils/axios';

// 获取考试列表（支持分页、搜索）
export function getExamList(params) {
  return request.get('/exam/list', {
    params
  });
}

// 创建考试
export function createExam(data) {
  return request.post('/exam/create', data);
}

// 更新考试
export function updateExam(data) {
  return request.put('/exam/update', data);
}

// 删除考试
export function deleteExam(id) {
  return request.delete(`/exam/delete/${id}`);
}